package com.it.data_queue.double_queue;

/**
 * 双端队列接口
 *
 * @author: Coke
 * @DateTime: 2023/06/17/18:32
 **/
public interface Deque<E> {
    // 添加元素
    boolean officeFirst (E e);
    
    boolean officeLast (E e);
    
    // 弹出元素
    E pollFirst ();
    
    E pollLast ();
    
    // 获取元素
    E peekFirst ();
    
    E peekLast ();
    
    // 是否为空或者已满
    boolean isEmpty ();
    
    boolean isFull ();
}
